<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body style="font-family:Arial, Helvetica, sans-serif">
<form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">

<h1>Active Staff List</h1>

<table width="520" border="1" cellspacing="0" cellpadding="10">
  <tr>
  	<td>ID</td>
    <td width="200"> Name</td>
    <td>DOB</td>
    <td>Prefer Name</td>
    <td>Mobile No.</td>
    <td>Register Date</td>
    <td>Delete Act</td>
  </tr>
<?php
$staffInfo = new Model_DbTable_Roster_Staffinfo();
foreach($this->sList as $k => $v){
?>  
  <tr>
  	<td><?php  echo $v["id"]?></td>
    <td><?php  echo Model_EncryptHelper::getSslPassword($v["n"])?></td>
    <td><?php  
			date_default_timezone_set('Australia/Melbourne');	
	echo date("Y-m-d",Model_EncryptHelper::getSslPassword($v["d"]))?></td>
    <td><?php  echo $v["ni"]?></td>
    <?php $staffDetail = $staffInfo->getStaffinfo($v['id']);?>
    <td width="100%"><?php echo $staffDetail['mobile_staff'];?></td>
    <td width="100%"><?php echo $staffDetail['register_date'];?></td>
    <td><input type = "checkbox" name = "delete[<?php echo $v['id']?>]" value = "<?php echo $v['id']?>"></input></td>
  </tr>
<?php }
?>
</table>

<h1>Leave Staff List</h1>
<table width="520" border="1" cellspacing="0" cellpadding="10">
  <tr>
  	<td>ID</td>
    <td width="200"> Name</td>
    <td>DOB</td>
    <td>Prefer Name</td>
    <td>Mobile No.</td>
    <td>Register Date</td>
    <td>Leave Date</td>
    <td>Delete Act</td>
  </tr>
<?php
foreach($this->lList as $k => $v){
?>  
  <tr>
  	<td><?php  echo $v["id"]?></td>
    <td><?php  echo Model_EncryptHelper::getSslPassword($v["n"])?></td>
    <td><?php  
			date_default_timezone_set('Australia/Melbourne');	
	echo date("Y-m-d",Model_EncryptHelper::getSslPassword($v["d"]))?></td>
    <td><?php  echo $v["ni"]?></td>
    <?php $staffDetail = $staffInfo->getStaffinfo($v['id']);?>
    <td width="100%"><?php echo $staffDetail['mobile_staff'];?></td>
    <td width="100%"><?php echo $staffDetail['register_date'];?></td>
    <td ><?php echo $staffDetail['leave_date']?></td>
    <td><input type = "checkbox" name = "delete[<?php echo $v['id']?>]" value = "<?php echo $v['id']?>"></input></td>
  </tr>
<?php }
?>
</table>

Input your password:<input type = "password" name = "password" ></input><br/><br/>
<input type = "submit" name = "submit" ></input>


</form>
</body>
</html>
